import request from '@/utils/request'

// api地址
const api = {
  list: '/store/scancode-pay/page',
  pay: '/store/scancode-pay/pay',
  check: '/store/scancode-pay/check-member',
  shops: '/store/scancode-pay/list-gift-shops'
}

// 账单分页查询
export const list = (param, option) => {
  return request.get(api.list, param, option)
}

// 收款
export const pay = (param, option) => {
  return request.post(api.pay, param, option)
}

// 校验
export const check = (param, option) => {
  return request.get(api.check, param, option)
}

// 可用门店
export const shops = (param, option) => {
  return request.get(api.shops, param, option)
}
